#ifndef _DM9000_H_
#define _DM9000_H_

#include "def.h"

//#define DM9000_DEBUG
#ifdef DM9000_DEBUG
#define DM9000_DBG	myprintf
#else
#define	DM9000_DBG(...)
#endif

int Dm9000_Init(void);
int dm9000_send(volatile void *packet, int length);
int dm9000_rx(U8 *rdptr);

void dump_regs(void);
void DM9000_Irq_Handle(void);

#endif
